<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTcmPrescriptionDetailTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tcm_prescription_detail', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('名称');
            $table->string('source')->nullable()->comment('出处');
            $table->string('effects')->nullable()->comment('功效');
            $table->string('shareImg')->nullable()->comment('分享图片');
            $table->string('picture')->nullable()->comment('图片');
            $table->text('ancientDose')->nullable()->comment('古代剂量');
            $table->text('modernDose')->nullable()->comment('现代剂量');
            $table->text('decoction')->nullable()->comment('煎服法');
            $table->text('ballad')->nullable()->comment('方歌');
            $table->text('indications')->nullable()->comment('适应症');
            $table->text('adjustment')->nullable()->comment('适应');
            $table->text('explanation')->nullable()->comment('说明');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tcm_prescription_detail');
    }
}
